<div id="top-bar-main">
	<div class="logo"><a href="<?php echo base_url("/home/") ?>"><div class="logo"></div></a></div>
	<div id="logout-container" class="normal-text">
		Welcome, <span class="get-fb-name"><?php echo $fb_id; ?></span>! &nbsp
		<?php
			if($new_notifications > 0){
				echo '<span class="new notification-text"><a href = "'. base_url("/notification/") .'">'. $new_notifications .' Notification(s)</a></span> &nbsp';
			}
			else{
				echo '<span class="non-new notification-text"><a href = "'. base_url("/notification/") .'">'. $new_notifications .' Notification(s)</a></span> &nbsp';
			}
		?>
		<div style="position:relative; top: 3px; display: inline"><a href="JavaScript:void(0);" onclick="FB.logout(function(){ top.location.href='<?php echo base_url(); ?>';});"> <img src="<?php echo base_url('resources/frame/fb_logout.gif'); ?>" alt="Logout" title="Logout" /></a></div><br />
		<div id="facebook-like">
		<fb:like href="<?php echo base_url(); ?>" width="420" show_faces="false" action="like" colorscheme="light" font="verdana"></fb:like>
		</div>
		<div id="facebook-share">			
		</div>
	</div>
	<div style="clear:both"></div>
	<div id="top-bar-menu-container">
			<ul id="menu-list">
				<li><div class="menu-item"><a class="home_menu_link" href="<?php echo base_url("/home/") ?>"></a></div></li>
				<li><div class="menu-item"><a class="profile_menu_link" href="<?php echo base_url()."profile/".$fb_id ?>"></a></div></li>
				<li><div class="menu-item"><a class="browse_menu_link" href="<?php echo base_url("/browse/") ?>"></a></div></li>
				<li><div class="menu-item"><a class="history_menu_link" href="<?php echo base_url("/history/") ?>"></a></div></li>
				<li><div class="menu-item"><a class="wants_menu_link" href="<?php echo base_url("/wants/") ?>"></a></div></li>
				<li><div class="menu-item"><a class="alternates_menu_link" href="<?php echo base_url("/alternatives/") ?>"></a></div></li>
			</ul>
	</div>
	<div id="top-bar-search-container">
		<form id="searchbar" method="post" action="<?php echo base_url()?>browse" height="50px">
        <div style="float:left"><input type="text" name="search" placeholder = "<?php echo isset($_POST['search'])?$_POST['search']:'Search'?>" id="search" /><br /></div>
		<div style="float-right"><input type="image" src="<?php echo base_url("/resources/frame/search.gif") ?>" id="search-img"/></div>
		<div style="clear:both"></div>
      </form>
	</div>
	<div style="clear:both"></div>
</div>